﻿using System;

namespace MvcForum.Net.Bussiness
{
    public class Topic
    {
        public int TopicId { get; set; }

        public int UserId { get; set; }

        public int ForumId { get; set; }

        public int? XForumId { get; set; }

        public int? ReplyTo { get; set; }

        public int Views { get; set; }

        public short Priority { get; set; }

        public DateTime? PriorityExpires { get; set; }

        public DateTime? RedirectExpires { get; set; }

        public DateTime LastEdited { get; set; }

        public DateTime Created { get; set; }

        public bool IsApproved { get; set; }

        public bool IsDeleted { get; set; }

        public bool IsLocked { get; set; }

        public int? PollId { get; set; }

        public bool IsPoll { get { return PollId.HasValue; } }

        public string TopicName { get; set; }

        public string RemoteUrl { get; set; }

        public string Tags { get; set; }

        public string EditedBy { get; set; }

        public string Reason { get; set; }

        public string Icon { get; set; }

        public string IP { get; set; }

        public int Replies { get; set; }

        public string Message { get; set; }

        public bool IncreasePosts { get; set; }

        // Extend

        public DateTime LastPosted { get; set; }

        public int? LastPostId { get; set; }

        public int? LastUserId { get; set; }

        public string LastUserName { get; set; }



        // Forum

        public string ForumName { get; set; }

        // Role
        public string RoleName { get; set; }

        public string CssClass { get; set; }

        // User



        public string UserName { get; set; }

        public string Email { get; set; }

        public string Signature { get; set; }

        public string Avatar { get; set; }

        public bool IsBanned { get; set; }

        public int TotalVisits { get; set; }

        public int TotalPosts { get; set; }

        public bool? Sex { get; set; }

        public DateTime RegDate { get; set; }


    }
}